import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.wifiManager.d.ts',
  content: "/*\n * Copyright (C) 2022-2023 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ConnectivityKit\n */\nimport { AsyncCallback, Callback } from './@ohos.base';\n/**\n * Provides methods to operate or manage Wi-Fi.\n * @namespace wifiManager\n * @since 9\n */\n/**\n * Provides methods to operate or manage Wi-Fi.\n * @namespace wifiManager\n * @atomicservice\n * @since 11\n */\n/**\n * Provides methods to operate or manage Wi-Fi.\n * @namespace wifiManager\n * @syscap SystemCapability.Communication.WiFi.STA\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare namespace wifiManager {\n    /**\n     * Enable Wi-Fi.\n     * @permission ohos.permission.SET_WIFI_INFO and (ohos.permission.MANAGE_WIFI_CONNECTION or\n     *  ohos.permission.MANAGE_ENTERPRISE_WIFI_CONNECTION)\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501003 - Operation failed because the service is being closed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 15\n     */\n    function enableWifi(): void;\n    /**\n     * Query the Wi-Fi status\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { boolean } Returns {@code true} if the Wi-Fi is active, returns {@code false} otherwise.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n   * Query the Wi-Fi status\n   * @permission ohos.permission.GET_WIFI_INFO\n   * @returns { boolean } Returns {@code true} if the Wi-Fi is active, returns {@code false} otherwise.\n   * @throws {BusinessError} 201 - Permission denied.\n   * @throws {BusinessError} 801 - Capability not supported.\n   * @throws {BusinessError} 2501000 - Operation failed.\n   * @syscap SystemCapability.Communication.WiFi.STA\n   * @atomicservice\n   * @since 11\n   */\n    /**\n     * Query the Wi-Fi status\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { boolean } Returns {@code true} if the Wi-Fi is active, returns {@code false} otherwise.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * Query the Wi-Fi status\n     * @returns { boolean } Returns {@code true} if the Wi-Fi is active, returns {@code false} otherwise.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @crossplatform\n     * @atomicservice\n     * @since 13\n     */\n    function isWifiActive(): boolean;\n    /**\n     * Scan Wi-Fi hotspot.\n     * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     * @deprecated since 10\n     * @useinstead wifiManager.startScan\n     */\n    function scan(): void;\n    /**\n     * Obtain the scanned sta list.\n     * @permission ohos.permission.GET_WIFI_INFO and (ohos.permission.GET_WIFI_PEERS_MAC or\n     * (ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION))\n     * @returns { Promise<Array<WifiScanInfo>> } Returns information about scanned Wi-Fi hotspot if any.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     * @deprecated since 10\n     * @useinstead wifiManager.getScanInfoList\n     */\n    function getScanResults(): Promise<Array<WifiScanInfo>>;\n    /**\n     * Obtain the scanned sta list.\n     * @permission ohos.permission.GET_WIFI_INFO and (ohos.permission.GET_WIFI_PEERS_MAC or\n     * (ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION))\n     * @param { AsyncCallback<Array<WifiScanInfo>> } callback - Returns information about scanned Wi-Fi hotspot if any.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     * @deprecated since 10\n     * @useinstead wifiManager.getScanInfoList\n     */\n    function getScanResults(callback: AsyncCallback<Array<WifiScanInfo>>): void;\n    /**\n     * Obtain the scanned sta list.\n     * @permission ohos.permission.GET_WIFI_INFO and (ohos.permission.GET_WIFI_PEERS_MAC or\n     * (ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION))\n     * @returns { Array<WifiScanInfo> } Returns information about scanned Wi-Fi hotspot if any.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     * @deprecated since 10\n     * @useinstead wifiManager.getScanInfoList\n     */\n    function getScanResultsSync(): Array<WifiScanInfo>;\n    /**\n     * Obtain the scanned station list. If does't have the permission of ohos.permission.GET_WIFI_PEERS_MAC, return random bssid.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Array<WifiScanInfo> } Returns information about scanned Wi-Fi hotspot if any.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 10\n     */\n    /**\n     * Obtain the scanned station list. If does't have the permission of ohos.permission.GET_WIFI_PEERS_MAC, return random bssid.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Array<WifiScanInfo> } Returns information about scanned Wi-Fi hotspot if any.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 12\n     */\n    function getScanInfoList(): Array<WifiScanInfo>;\n    /**\n     * Add Wi-Fi connection configuration to the device. The configuration will be updated when the configuration is added.</p>\n     * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.SET_WIFI_CONFIG\n     * @param { WifiDeviceConfig } config - Indicates the device configuration for connection to the Wi-Fi network.\n     * @returns { Promise<number> } Returns {@code networkId} if the configuration is added; returns {@code -1} otherwise.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types. 3.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 15\n     */\n    function addDeviceConfig(config: WifiDeviceConfig): Promise<number>;\n    /**\n     * Add Wi-Fi connection configuration to the device. The configuration will be updated when the configuration is added.</p>\n     * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.SET_WIFI_CONFIG\n     * @param { WifiDeviceConfig } config - Indicates the device configuration for connection to the Wi-Fi network.\n     * @param { AsyncCallback<number> } callback - Indicates call back of addDeviceConfig.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types. 3.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 15\n     */\n    function addDeviceConfig(config: WifiDeviceConfig, callback: AsyncCallback<number>): void;\n    /**\n    * Add a specified candidate hotspot configuration and returns the networkId.\n    * This method adds one configuration at a time. After this configuration is added,\n    *     your device will determine whether to connect to the hotspot.\n    * The app must be in the foreground.\n    * @permission ohos.permission.SET_WIFI_INFO\n    * @param { WifiDeviceConfig } config - candidate config.\n    * @returns { Promise<number> } Returns {@code networkId} if the configuration is added; returns {@code -1} otherwise.\n    * @throws {BusinessError} 201 - Permission denied.\n    * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n    *     2. Incorrect parameter types. 3.Parameter verification failed.\n    * @throws {BusinessError} 801 - Capability not supported.\n    * @throws {BusinessError} 2501000 - Operation failed.\n    * @syscap SystemCapability.Communication.WiFi.STA\n    * @since 9\n    */\n    /**\n     * Add a specified candidate hotspot configuration and returns the networkId.\n     * This method adds one configuration at a time. After this configuration is added,\n     *     your device will determine whether to connect to the hotspot.\n     * The app must be in the foreground.\n     * @permission ohos.permission.SET_WIFI_INFO\n     * @param { WifiDeviceConfig } config - candidate config.\n     * @returns { Promise<number> } Returns {@code networkId} if the configuration is added; returns {@code -1} otherwise.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types. 3.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 12\n     */\n    function addCandidateConfig(config: WifiDeviceConfig): Promise<number>;\n    /**\n    * Add a specified candidate hotspot configuration and returns the networkId.\n    * This method adds one configuration at a time. After this configuration is added,\n    *     your device will determine whether to connect to the hotspot.\n    * The app must be in the foreground.\n    * @permission ohos.permission.SET_WIFI_INFO\n    * @param { WifiDeviceConfig } config - candidate config.\n    * @param { AsyncCallback<number> } callback - Indicates call back of addCandidateConfig.\n    * @throws {BusinessError} 201 - Permission denied.\n    * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n    *     2. Incorrect parameter types. 3.Parameter verification failed.\n    * @throws {BusinessError} 801 - Capability not supported.\n    * @throws {BusinessError} 2501000 - Operation failed.\n    * @syscap SystemCapability.Communication.WiFi.STA\n    * @since 9\n    */\n    /**\n    * Add a specified candidate hotspot configuration and returns the networkId.\n    * This method adds one configuration at a time. After this configuration is added,\n    *     your device will determine whether to connect to the hotspot.\n    * The app must be in the foreground.\n    * @permission ohos.permission.SET_WIFI_INFO\n    * @param { WifiDeviceConfig } config - candidate config.\n    * @param { AsyncCallback<number> } callback - Indicates call back of addCandidateConfig.\n    * @throws {BusinessError} 201 - Permission denied.\n    * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n    *     2. Incorrect parameter types. 3.Parameter verification failed.\n    * @throws {BusinessError} 801 - Capability not supported.\n    * @throws {BusinessError} 2501000 - Operation failed.\n    * @syscap SystemCapability.Communication.WiFi.STA\n    * @atomicservice\n    * @since 12\n    */\n    function addCandidateConfig(config: WifiDeviceConfig, callback: AsyncCallback<number>): void;\n    /**\n     * Remove a specified candidate hotspot configuration, only the configuration which is added by ourself is allowed\n     * to be removed.\n     * The app must be in the foreground.\n     * @permission ohos.permission.SET_WIFI_INFO\n     * @param { number } networkId - Network ID which will be removed.\n     * @returns { Promise<void> } Return results.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types. 3.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Remove a specified candidate hotspot configuration, only the configuration which is added by ourself is allowed\n     * to be removed.\n     * The app must be in the foreground.\n     * @permission ohos.permission.SET_WIFI_INFO\n     * @param { number } networkId - Network ID which will be removed.\n     * @returns { Promise<void> } Return results.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types. 3.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 12\n     */\n    function removeCandidateConfig(networkId: number): Promise<void>;\n    /**\n     * Remove a specified candidate hotspot configuration, only the configuration which is added by ourself is allowed\n     * to be removed.\n     * The app must be in the foreground\n     * @permission ohos.permission.SET_WIFI_INFO\n     * @param { number } networkId - Network ID which will be removed.\n     * @param { AsyncCallback<void> } callback - Indicates call back of removeCandidateConfig.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types. 3.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Remove a specified candidate hotspot configuration, only the configuration which is added by ourself is allowed\n     * to be removed.\n     * The app must be in the foreground.\n     * @permission ohos.permission.SET_WIFI_INFO\n     * @param { number } networkId - Network ID which will be removed.\n     * @param { AsyncCallback<void> } callback - Indicates call back of removeCandidateConfig.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types. 3.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 12\n     */\n    function removeCandidateConfig(networkId: number, callback: AsyncCallback<void>): void;\n    /**\n     * Obtain the list of all existed candidate Wi-Fi configurations which added by ourself.\n     * You can obtain only the Wi-Fi configurations you created on your own application.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @returns { Array<WifiDeviceConfig> } Returns the list of all existed Wi-Fi configurations you created on your application.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Obtain the list of all existed candidate Wi-Fi configurations which added by ourself.\n     * You can obtain only the Wi-Fi configurations you created on your own application.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Array<WifiDeviceConfig> } Returns the list of all existed Wi-Fi configurations you created on your application.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 10\n     */\n    /**\n     * Obtain the list of all existed candidate Wi-Fi configurations which added by ourself.\n     * You can obtain only the Wi-Fi configurations you created on your own application.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Array<WifiDeviceConfig> } Returns the list of all existed Wi-Fi configurations you created on your application.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 12\n     */\n    function getCandidateConfigs(): Array<WifiDeviceConfig>;\n    /**\n     * Connect to a specified candidate hotspot by networkId, only the configuration which is added by ourself\n     * is allowed to be connected. This method connect to a configuration at a time.\n     * The app must be in the foreground.\n     * @permission ohos.permission.SET_WIFI_INFO\n     * @param { number } networkId - Network ID which will be connected. The value of networkId cannot be less than 0.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types. 3.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Connect to a specified candidate hotspot by networkId, only the configuration which is added by ourself\n     * is allowed to be connected. This method connect to a configuration at a time.\n     * The app must be in the foreground.\n     * @permission ohos.permission.SET_WIFI_INFO\n     * @param { number } networkId - Network ID which will be connected. The value of networkId cannot be less than 0.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types. 3.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 12\n     */\n    function connectToCandidateConfig(networkId: number): void;\n    /**\n     * Connect to a specified candidate hotspot by networkId, and wait for user respond result.\n     * Only the configuration which is added by ourself is allowed to be connected.\n     * This method connect to a configuration at a time.\n     * The app must be in the foreground.\n     * @permission ohos.permission.SET_WIFI_INFO\n     * @param { number } networkId - Network ID which will be connected. The value of networkId cannot be less than 0.\n     * @returns { Promise<void> } - Returns the promise object that used to return the operation result.\n     * If the operation fails, an error message is returned.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 801 - Capability not supported.\n     * @throws { BusinessError } 2501000 - Operation failed.\n     * @throws { BusinessError } 2501001 - Wi-Fi STA disabled.\n     * @throws { BusinessError } 2501005 - The user does not respond.\n     * @throws { BusinessError } 2501006 - The user refused the action.\n     * @throws { BusinessError } 2501007 - Parameter validation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 20\n     */\n    function connectToCandidateConfigWithUserAction(networkId: number): Promise<void>;\n    /**\n     * Connect to Wi-Fi hotspot by networkId.\n     * @permission ohos.permission.MANAGE_WIFI_CONNECTION or ohos.permission.MANAGE_ENTERPRISE_WIFI_CONNECTION\n     * @param { number } networkId - ID of the connected network. The value of networkId cannot be less than 0.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types. 3.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 15\n     */\n    function connectToNetwork(networkId: number): void;\n    /**\n     * Disconnect connection between sta and Wi-Fi hotspot.\n     * @permission ohos.permission.SET_WIFI_INFO and (ohos.permission.MANAGE_WIFI_CONNECTION or\n     * ohos.permission.MANAGE_ENTERPRISE_WIFI_CONNECTION)\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 15\n     */\n    function disconnect(): void;\n    /**\n     * Calculate the Wi-Fi signal level based on the Wi-Fi RSSI and frequency band.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { number } rssi - Indicates the Wi-Fi RSSI.\n     * @param { number } band - Indicates the Wi-Fi frequency band.\n     * @returns { number } Returns Wi-Fi signal level ranging from 0 to 4.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    function getSignalLevel(rssi: number, band: number): number;\n    /**\n     * Obtain connection information about the Wi-Fi connection. If does't have the permission of ohos.permission.GET_WIFI_PEERS_MAC, return random bssid.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Promise<WifiLinkedInfo> } Returns Wi-Fi linked information.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Obtain connection information about the Wi-Fi connection. If does't have the permission of ohos.permission.GET_WIFI_PEERS_MAC, return random bssid.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Promise<WifiLinkedInfo> } Returns Wi-Fi linked information.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function getLinkedInfo(): Promise<WifiLinkedInfo>;\n    /**\n     * Obtain multiple Wi-Fi connection information when Wi-Fi linked in MLO(Muti-Link Operation) state.\n     * If does't have the permission of ohos.permission.GET_WIFI_PEERS_MAC, return random bssid.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Array<WifiLinkedInfo> } Returns Wi-Fi multiple link information.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @crossplatform\n     * @since 18\n     */\n    function getMultiLinkedInfo(): Array<WifiLinkedInfo>;\n    /**\n     * Obtain connection information about the Wi-Fi connection.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { AsyncCallback<WifiLinkedInfo> } callback - Indicates callback of function.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Obtain connection information about the Wi-Fi connection.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { AsyncCallback<WifiLinkedInfo> } callback - Indicates callback of function.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @crossplatform\n     * @since 12\n     */\n    function getLinkedInfo(callback: AsyncCallback<WifiLinkedInfo>): void;\n    /**\n     * Obtain connection information about the Wi-Fi connection.this apireturns the result syncchronously.\n     * If does't have the permission of ohos.permission.GET_WIFI_PEERS_MAC, return random bssid.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { WifiLinkedInfo } Returns Wi-Fi linked information.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @crossplatform\n     * @since 18\n     */\n    function getLinkedInfoSync(): WifiLinkedInfo;\n    /**\n     * Check whether the Wi-Fi connection has been set up.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { boolean } Returns {@code true} if a Wi-Fi connection has been set up, returns {@code false} otherwise.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Check whether the Wi-Fi connection has been set up.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { boolean } Returns {@code true} if a Wi-Fi connection has been set up, returns {@code false} otherwise.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function isConnected(): boolean;\n    /**\n     * Check whether the device supports a specified feature.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { number } featureId Indicates the ID of the feature.\n     * @returns { boolean } Returns {@code true} if this device supports the specified feature, returns {@code false} otherwise.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2401000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.Core\n     * @since 9\n     */\n    function isFeatureSupported(featureId: number): boolean;\n    /**\n     * Obtain the MAC address of a Wi-Fi device. Wi-Fi must be enabled.\n     * The MAC address is unique and cannot be changed.\n     * @permission ohos.permission.GET_WIFI_LOCAL_MAC and ohos.permission.GET_WIFI_INFO\n     * @returns { string[] } Returns the MAC address of the Wi-Fi device.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 15\n     */\n    function getDeviceMacAddress(): string[];\n    /**\n     * Obtain the IPv4 information of the Wi-Fi connection.\n     * The IP information includes the host IP address, gateway address, and DNS information.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { IpInfo } Returns the IP information of the Wi-Fi connection.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    function getIpInfo(): IpInfo;\n    /**\n     * Obtain the IPv6 information of the Wi-Fi connection.\n     * The IPv6 information includes the host IP address, gateway address, and DNS information.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Ipv6Info } Returns the IPv6 information of the Wi-Fi connection.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 10\n     */\n    function getIpv6Info(): Ipv6Info;\n    /**\n     * Obtain the country code of the device.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { string } Returns the country code of this device.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2401000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.Core\n     * @since 9\n     */\n    function getCountryCode(): string;\n    /**\n     * Obtain the list of all existed Wi-Fi configurations.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_CONFIG\n     * @returns { Array<WifiDeviceConfig> } Returns the list of all existing Wi-Fi configurations you created on your application.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 15\n     */\n    function getDeviceConfigs(): Array<WifiDeviceConfig>;\n    /**\n     * Remove a Wi-Fi DeviceConfig with networkId.\n     * After a Wi-Fi DeviceConfig is removed, its configuration will be deleted from the list of Wi-Fi configurations.\n     * If the Wi-Fi DeviceConfig is being connected, the connection will be interrupted.\n     * The application can only delete Wi-Fi DeviceConfig it has created.\n     * @permission ohos.permission.SET_WIFI_INFO and (ohos.permission.MANAGE_WIFI_CONNECTION or\n     * ohos.permission.MANAGE_ENTERPRISE_WIFI_CONNECTION)\n     * @param { number } id - Indicate the ID of the Wi-Fi DeviceConfig. The value of networkId cannot be less than 0.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types. 3.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 15\n     */\n    function removeDevice(id: number): void;\n    /**\n     * Check whether the current device supports the specified band.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { WifiBandType } bandType - Indicates the band type.\n     * @returns { boolean }Returns {@code true} if the specified band is supported, returns {@code false} otherwise.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 10\n     */\n    function isBandTypeSupported(bandType: WifiBandType): boolean;\n    /**\n     * Whether the hotspot is metered hotspot or not.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { boolean } Returns {@code true} if the hotspot is metered hotspot, returns {@code false} otherwise.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @throws {BusinessError} 2501001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 11\n     */\n    function isMeteredHotspot(): boolean;\n    \n    /**\n     * Check whether Wi-Fi hotspot is active on a device.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { boolean } {@code true} if Wi-Fi hotspot is enabled, returns {@code false} otherwise.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2601000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.AP.Core\n     * @since 15\n     */\n    function isHotspotActive(): boolean;\n    /**\n     * Obtain information about the P2P connection.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Promise<WifiP2pLinkedInfo> } Returns p2p linked information.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function getP2pLinkedInfo(): Promise<WifiP2pLinkedInfo>;\n    /**\n     * Obtain information about the P2P connection.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { AsyncCallback<WifiP2pLinkedInfo> } callback - Indicates callback of function.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function getP2pLinkedInfo(callback: AsyncCallback<WifiP2pLinkedInfo>): void;\n    /**\n     * Obtain information about the current p2p group.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @returns { Promise<WifiP2pGroupInfo> } Returns p2p group information.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Obtain information about the current p2p group.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Promise<WifiP2pGroupInfo> } Returns p2p group information.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 10\n     */\n    function getCurrentGroup(): Promise<WifiP2pGroupInfo>;\n    /**\n     * Obtain information about the current p2p group.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @param { AsyncCallback<WifiP2pGroupInfo> } callback - Indicates callback of function.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Obtain information about the current p2p group.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { AsyncCallback<WifiP2pGroupInfo> } callback - Indicates callback of function.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 10\n     */\n    function getCurrentGroup(callback: AsyncCallback<WifiP2pGroupInfo>): void;\n    /**\n     * Obtain the information about the found devices.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @returns { Promise<WifiP2pDevice[]> } Returns p2p device information.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Obtain the information about the found devices.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Promise<WifiP2pDevice[]> } Returns p2p device information.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 10\n     */\n    function getP2pPeerDevices(): Promise<WifiP2pDevice[]>;\n    /**\n     * Obtain the information about the found devices.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @param { AsyncCallback<WifiP2pDevice[]> } callback - Indicates callback of function.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Obtain the information about the found devices.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { AsyncCallback<WifiP2pDevice[]> } callback - Indicates callback of function.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 10\n     */\n    function getP2pPeerDevices(callback: AsyncCallback<WifiP2pDevice[]>): void;\n    /**\n     * Obtain the information about own device information.\n     * DeviceAddress in the returned WifiP2pDevice will be set \"00:00:00:00:00:00\",\n     * if ohos.permission.GET_WIFI_LOCAL_MAC is not granted.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_CONFIG\n     * @returns { Promise<WifiP2pDevice> } Returns the information about own device info.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Obtain the information about own device information.\n     * DeviceAddress in the returned WifiP2pDevice will be set \"00:00:00:00:00:00\",\n     * if ohos.permission.GET_WIFI_LOCAL_MAC is not granted.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @returns { Promise<WifiP2pDevice> } Returns the information about own device info.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 11\n     */\n    function getP2pLocalDevice(): Promise<WifiP2pDevice>;\n    /**\n     * Obtain the information about own device information.\n     * DeviceAddress in the returned WifiP2pDevice will be set \"00:00:00:00:00:00\",\n     * if ohos.permission.GET_WIFI_LOCAL_MAC is not granted.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_CONFIG\n     * @param { AsyncCallback<WifiP2pDevice> } callback - Indicates callback of function.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Obtain the information about own device information.\n     * DeviceAddress in the returned WifiP2pDevice will be set \"00:00:00:00:00:00\",\n     * if ohos.permission.GET_WIFI_LOCAL_MAC is not granted.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { AsyncCallback<WifiP2pDevice> } callback - Indicates callback of function.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 11\n     */\n    function getP2pLocalDevice(callback: AsyncCallback<WifiP2pDevice>): void;\n    /**\n     * Create a P2P group.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { WifiP2PConfig } config - Indicates the configuration for a group.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1.Incorrect parameter types.\n     *     2.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function createGroup(config: WifiP2PConfig): void;\n    /**\n     * Remove a P2P group.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function removeGroup(): void;\n    /**\n     * Initiate a P2P connection to a device with the specified configuration.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @param { WifiP2PConfig } config - Indicates the configuration for connecting to a specific group.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Initiate a P2P connection to a device with the specified configuration.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { WifiP2PConfig } config - Indicates the configuration for connecting to a specific group.\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1.Incorrect parameter types.\n     *     2.Parameter verification failed.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 10\n     */\n    function p2pConnect(config: WifiP2PConfig): void;\n    /**\n     * Stop an ongoing p2p connection that is being established.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function p2pCancelConnect(): void;\n    /**\n     * Start discover Wi-Fi P2P devices.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Start discover Wi-Fi P2P devices.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 10\n     */\n    function startDiscoverDevices(): void;\n    /**\n     * Stop discover Wi-Fi P2P devices.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @throws {BusinessError} 2801001 - Wi-Fi STA disabled.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function stopDiscoverDevices(): void;\n    /**\n     * Subscribe Wi-Fi status change events.\n     * When the service exits, call off(type: 'wifiStateChange', callback?: Callback&lt;number&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiStateChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of on, 0: inactive, 1: active, 2: activating, 3: de-activating\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Subscribe Wi-Fi status change events.\n     * When the service exits, call off(type: 'wifiStateChange', callback?: Callback&lt;number&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiStateChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of on, 0: inactive, 1: active, 2: activating, 3: de-activating\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function on(type: 'wifiStateChange', callback: Callback<number>): void;\n    /**\n     * Unsubscribe Wi-Fi status change events.\n     *\n     * <p>All callback functions will be deregistered If there is no specific callback parameter.</p>\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiStateChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Unsubscribe Wi-Fi status change events.\n     *\n     * <p>All callback functions will be deregistered If there is no specific callback parameter.</p>\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiStateChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function off(type: 'wifiStateChange', callback?: Callback<number>): void;\n    /**\n     * Subscribe Wi-Fi connection change events.\n     * When the service exits, call off(type: 'wifiConnectionChange', callback?: Callback&lt;number&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiConnectionChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of on, 0: disconnected, 1: connected\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Subscribe Wi-Fi connection change events.\n     * When the service exits, call off(type: 'wifiConnectionChange', callback?: Callback&lt;number&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiConnectionChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of on, 0: disconnected, 1: connected\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function on(type: 'wifiConnectionChange', callback: Callback<number>): void;\n    /**\n     * Unsubscribe Wi-Fi connection change events.\n     * All callback functions will be deregistered If there is no specific callback parameter.</p>\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiConnectionChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Unsubscribe Wi-Fi connection change events.\n     * All callback functions will be deregistered If there is no specific callback parameter.</p>\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiConnectionChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function off(type: 'wifiConnectionChange', callback?: Callback<number>): void;\n    /**\n     * Subscribe Wi-Fi scan status change events.\n     * When the service exits, call off(type: 'wifiScanStateChange', callback?: Callback&lt;number&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiScanStateChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of on, 0: scan fail, 1: scan success\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Subscribe Wi-Fi scan status change events.\n     * When the service exits, call off(type: 'wifiScanStateChange', callback?: Callback&lt;number&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiScanStateChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of on, 0: scan fail, 1: scan success\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 12\n     */\n    function on(type: 'wifiScanStateChange', callback: Callback<number>): void;\n    /**\n     * Unsubscribe Wi-Fi scan status change events.\n     * All callback functions will be deregistered If there is no specific callback parameter.</p>\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiScanStateChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Unsubscribe Wi-Fi scan status change events.\n     * All callback functions will be deregistered If there is no specific callback parameter.</p>\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiScanStateChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 12\n     */\n    function off(type: 'wifiScanStateChange', callback?: Callback<number>): void;\n    /**\n     * Subscribe Wi-Fi rssi change events.\n     * When the service exits, call off(type: 'wifiRssiChange', callback?: Callback&lt;number&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiRssiChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of on\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    function on(type: 'wifiRssiChange', callback: Callback<number>): void;\n    /**\n     * Unsubscribe Wi-Fi rssi change events.\n     * All callback functions will be deregistered If there is no specific callback parameter.</p>\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'wifiRssiChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2501000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    function off(type: 'wifiRssiChange', callback?: Callback<number>): void;\n    /**\n     * Subscribe Wi-Fi hotspot state change events.\n     * When the service exits, call off(type: 'hotspotStateChange', callback?: Callback&lt;number&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'hotspotStateChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of on, 0: inactive, 1: active, 2: activating, 3: de-activating\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 202 - System API is not allowed called by Non-system application.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2601000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.AP.Core\n     * @since 9\n     */\n    function on(type: 'hotspotStateChange', callback: Callback<number>): void;\n    /**\n     * Unsubscribe Wi-Fi hotspot state change events.\n     * All callback functions will be deregistered If there is no specific callback parameter.</p>\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'hotspotStateChange'} type - event name.\n     * @param { Callback<number> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 202 - System API is not allowed called by Non-system application.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2601000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.AP.Core\n     * @since 9\n     */\n    function off(type: 'hotspotStateChange', callback?: Callback<number>): void;\n    /**\n     * Subscribe P2P status change events.\n     * When the service exits, call off(type: 'p2pStateChange', callback?: Callback&lt;number&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'p2pStateChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of on, 1: idle, 2: starting, 3:started, 4: closing, 5: closed\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function on(type: 'p2pStateChange', callback: Callback<number>): void;\n    /**\n     * Unsubscribe P2P status change events.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'p2pStateChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function off(type: 'p2pStateChange', callback?: Callback<number>): void;\n    /**\n     * Subscribe P2P connection change events.\n     * When the service exits, call off(type: 'p2pConnectionChange', callback?: Callback&lt;WifiP2pLinkedInfo&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'p2pConnectionChange' } type - event name.\n     * @param { Callback<WifiP2pLinkedInfo> } callback - the callback of on\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function on(type: 'p2pConnectionChange', callback: Callback<WifiP2pLinkedInfo>): void;\n    /**\n     * Unsubscribe P2P connection change events.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'p2pConnectionChange' } type - event name.\n     * @param { Callback<WifiP2pLinkedInfo> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function off(type: 'p2pConnectionChange', callback?: Callback<WifiP2pLinkedInfo>): void;\n    /**\n     * Subscribe P2P local device change events.\n     * When the service exits, call off(type: 'p2pDeviceChange', callback?: Callback&lt;WifiP2pDevice&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @param { 'p2pDeviceChange' } type - event name.\n     * @param { Callback<WifiP2pDevice> } callback - the callback of on\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Subscribe P2P local device change events.\n     * When the service exits, call off(type: 'p2pDeviceChange', callback?: Callback&lt;WifiP2pDevice&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'p2pDeviceChange' } type - event name.\n     * @param { Callback<WifiP2pDevice> } callback - the callback of on\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 10\n     */\n    function on(type: 'p2pDeviceChange', callback: Callback<WifiP2pDevice>): void;\n    /**\n     * Unsubscribe P2P local device change events.\n     * @permission ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @param { 'p2pDeviceChange' } type - event name.\n     * @param { Callback<WifiP2pDevice> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Unsubscribe P2P local device change events.\n     * @param { 'p2pDeviceChange' } type - event name.\n     * @param { Callback<WifiP2pDevice> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 10\n     */\n    function off(type: 'p2pDeviceChange', callback?: Callback<WifiP2pDevice>): void;\n    /**\n     * Subscribe P2P peer device change events.\n     * When the service exits, call off(type: 'p2pPeerDeviceChange', callback?: Callback&lt;WifiP2pDevice[]&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @param { 'p2pPeerDeviceChange' } type - event name.\n     * @param { Callback<WifiP2pDevice[]> } callback - the callback of on\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Subscribe P2P peer device change events.\n     * When the service exits, call off(type: 'p2pPeerDeviceChange', callback?: Callback&lt;WifiP2pDevice[]&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'p2pPeerDeviceChange' } type - event name.\n     * @param { Callback<WifiP2pDevice[]> } callback - the callback of on\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 10\n     */\n    function on(type: 'p2pPeerDeviceChange', callback: Callback<WifiP2pDevice[]>): void;\n    /**\n     * Unsubscribe P2P peer device change events.\n     * @permission ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION\n     * @param { 'p2pPeerDeviceChange' } type - event name.\n     * @param { Callback<WifiP2pDevice[]> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    /**\n     * Unsubscribe P2P peer device change events.\n     * @param { 'p2pPeerDeviceChange' } type - event name.\n     * @param { Callback<WifiP2pDevice[]> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 10\n     */\n    function off(type: 'p2pPeerDeviceChange', callback?: Callback<WifiP2pDevice[]>): void;\n    /**\n     * Subscribe P2P persistent group change events.\n     * When the service exits, call off(type: 'p2pPersistentGroupChange', callback?: Callback&lt;void&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'p2pPersistentGroupChange' } type - event name.\n     * @param { Callback<void> } callback - the callback of on\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function on(type: 'p2pPersistentGroupChange', callback: Callback<void>): void;\n    /**\n     * Unsubscribe P2P persistent group change events.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'p2pPersistentGroupChange' } type - event name.\n     * @param { Callback<void> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function off(type: 'p2pPersistentGroupChange', callback?: Callback<void>): void;\n    /**\n     * Subscribe P2P discovery events.\n     * When the service exits, call off(type: 'p2pDiscoveryChange', callback?: Callback&lt;number&gt;) to unregister the callback registered.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'p2pDiscoveryChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of on\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function on(type: 'p2pDiscoveryChange', callback: Callback<number>): void;\n    /**\n     * Unsubscribe P2P discovery events.\n     * @permission ohos.permission.GET_WIFI_INFO\n     * @param { 'p2pDiscoveryChange' } type - event name.\n     * @param { Callback<number> } callback - the callback of off\n     * @throws {BusinessError} 201 - Permission denied.\n     * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     * @throws {BusinessError} 801 - Capability not supported.\n     * @throws {BusinessError} 2801000 - Operation failed.\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    function off(type: 'p2pDiscoveryChange', callback?: Callback<number>): void;\n    /**\n     * Wi-Fi device address( mac / bssid ) type.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.Core\n     * @since 10\n     */\n    /**\n     * Wi-Fi device address( mac / bssid ) type.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum DeviceAddressType {\n        /**\n         * random device address\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 10\n         */\n        /**\n         * random device address\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @atomicservice\n         * @since 12\n         */\n        RANDOM_DEVICE_ADDRESS,\n        /**\n         * real device address\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 10\n         */\n        /**\n         * real device address\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @atomicservice\n         * @since 12\n         */\n        REAL_DEVICE_ADDRESS\n    }\n    /**\n     * Wi-Fi EAP method.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 10\n     */\n    enum EapMethod {\n        /**\n         * EAP NONE\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        EAP_NONE,\n        /**\n         * EAP PEAP\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        EAP_PEAP,\n        /**\n         * EAP TLS\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        EAP_TLS,\n        /**\n         * EAP TTLS\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        EAP_TTLS,\n        /**\n         * EAP PWD\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        EAP_PWD,\n        /**\n         * EAP SIM\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        EAP_SIM,\n        /**\n         * EAP AKA\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        EAP_AKA,\n        /**\n         * EAP AKA PRIME\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        EAP_AKA_PRIME,\n        /**\n         * EAP UNAUTH TLS\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        EAP_UNAUTH_TLS\n    }\n    /**\n     * Wi-Fi phase 2 method.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 10\n     */\n    enum Phase2Method {\n        /**\n         * Phase2 NONE\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        PHASE2_NONE,\n        /**\n         * Phase2 PAP\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        PHASE2_PAP,\n        /**\n         * Phase2 MSCHAP\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        PHASE2_MSCHAP,\n        /**\n         * Phase2 MSCHAPV2\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        PHASE2_MSCHAPV2,\n        /**\n         * Phase2 GTC\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        PHASE2_GTC,\n        /**\n         * Phase2 SIM\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        PHASE2_SIM,\n        /**\n         * Phase2 AKA\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        PHASE2_AKA,\n        /**\n         * Phase2 AKA+\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        PHASE2_AKA_PRIME\n    }\n    /**\n     * Wi-Fi Category.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 12\n     */\n    enum WifiCategory {\n        /**\n         * Default.\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        DEFAULT = 1,\n        /**\n         * Wifi6.\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        WIFI6 = 2,\n        /**\n         * Wifi6+.\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        WIFI6_PLUS = 3,\n        /**\n         * Wifi7.\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 15\n         */\n        WIFI7 = 4,\n        /**\n         * Wifi7+.\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 15\n         */\n        WIFI7_PLUS = 5\n    }\n    /**\n     * Wi-Fi link type.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 18\n     */\n    enum WifiLinkType {\n        /**\n         * Default link.\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 18\n         */\n        DEFAULT_LINK = 0,\n        /**\n         * Wi-Fi7 single link.\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 18\n         */\n        WIFI7_SINGLE_LINK = 1,\n        /**\n         * Wi-Fi7 MLSR.\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 18\n         */\n        WIFI7_MLSR = 2,\n        /**\n         * Wi-Fi7 EMLSR.\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 18\n         */\n        WIFI7_EMLSR = 3,\n        /**\n         * Wi-Fi7 STR.\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 18\n         */\n        WIFI7_STR = 4\n    }\n    /**\n     * Wi-Fi EAP config.\n     * @typedef WifiEapConfig\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 10\n     */\n    interface WifiEapConfig {\n        /**\n         * EAP authentication method\n         * @type { EapMethod }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        eapMethod: EapMethod;\n        /**\n         * Phase 2 authentication method\n         * @type { Phase2Method }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        phase2Method: Phase2Method;\n        /**\n         * The identity\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        identity: string;\n        /**\n         * Anonymous identity\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        anonymousIdentity: string;\n        /**\n         * Password\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        password: string;\n        /**\n         * CA certificate alias\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        caCertAlias: string;\n        /**\n         * CA certificate path\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        caPath: string;\n        /**\n         * Client certificate alias\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        clientCertAlias: string;\n        /**\n         * content of user's certificate\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        certEntry: Uint8Array;\n        /**\n         * Password of user's certificate\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        certPassword: string;\n        /**\n         * Alternate subject match\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        altSubjectMatch: string;\n        /**\n         * Domain suffix match\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        domainSuffixMatch: string;\n        /**\n         * Realm for Passpoint credential\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        realm: string;\n        /**\n         * Public Land Mobile Network of the provider of Passpoint credential\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        plmn: string;\n        /**\n         * Sub ID of the SIM card\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        eapSubId: number;\n    }\n    /**\n     * Wi-Fi device configuration information.\n     * @typedef WifiDeviceConfig\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Wi-Fi device configuration information.\n     * @typedef WifiDeviceConfig\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 12\n     */\n    interface WifiDeviceConfig {\n        /**\n         * Wi-Fi SSID: the maximum length is 32.\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * Wi-Fi SSID: the maximum length is 32.\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        ssid: string;\n        /**\n         * Wi-Fi bssid(MAC): the length is 6.\n         * @type { ?string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * Wi-Fi bssid(MAC): the length is 6.\n         * @type { ?string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        bssid?: string;\n        /**\n         * Wi-Fi bssid type.\n         * @type { ?DeviceAddressType }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        /**\n         * Wi-Fi bssid type.\n         * @type { ?DeviceAddressType }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        bssidType?: DeviceAddressType;\n        /**\n         * Wi-Fi key: maximum length is 64.\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * Wi-Fi key: maximum length is 64.\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        preSharedKey: string;\n        /**\n         * Hide SSID or not, false(default): not hide\n         * @type { ?boolean }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        isHiddenSsid?: boolean;\n        /**\n         * Security type: reference definition of WifiSecurityType\n         * @type { WifiSecurityType }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * Security type: reference definition of WifiSecurityType\n         * @type { WifiSecurityType }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        securityType: WifiSecurityType;\n        /**\n         * EAP config info.\n         * @type { ?WifiEapConfig }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        eapConfig?: WifiEapConfig;\n        /**\n         * WAPI config info.\n         * @type { ?WifiWapiConfig }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        wapiConfig?: WifiWapiConfig;\n    }\n    /**\n     * Wi-Fi WAPI config.\n     * @typedef WifiWapiConfig\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 12\n     */\n    interface WifiWapiConfig {\n        /**\n         * WAPI pre-shared key type.\n         * @type { WapiPskType }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        wapiPskType: WapiPskType;\n        /**\n         * WAPI AS certification.\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        wapiAsCert: string;\n        /**\n         * WAPI user certification.\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        wapiUserCert: string;\n    }\n    /**\n     * Wi-Fi information elements.\n     * @typedef WifiInfoElem\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    interface WifiInfoElem {\n        /**\n         * Element id\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        eid: number;\n        /**\n         * Element content\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        content: Uint8Array;\n    }\n    /**\n     * Describes the wifi channel width.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    enum WifiChannelWidth {\n        /**\n         * 20MHz.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        WIDTH_20MHZ = 0,\n        /**\n         * 40MHz.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        WIDTH_40MHZ = 1,\n        /**\n         * 80MHz.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        WIDTH_80MHZ = 2,\n        /**\n         * 160MHz.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        WIDTH_160MHZ = 3,\n        /**\n         * 80MHz plus.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        WIDTH_80MHZ_PLUS = 4,\n        /**\n         * Invalid.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        WIDTH_INVALID\n    }\n    /**\n     * Describes the scanned Wi-Fi information.\n     * @typedef WifiScanInfo\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Describes the scanned Wi-Fi information.\n     * @typedef WifiScanInfo\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 12\n     */\n    interface WifiScanInfo {\n        /**\n         * Wi-Fi SSID: the maximum length is 32\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * Wi-Fi SSID: the maximum length is 32\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        ssid: string;\n        /**\n         * Wi-Fi bssid(MAC): the length is 6\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * Wi-Fi bssid(MAC): the length is 6\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        bssid: string;\n        /**\n         * Wi-Fi bssid type\n         * @type { DeviceAddressType }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        /**\n         * Wi-Fi bssid type\n         * @type { DeviceAddressType }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        bssidType: DeviceAddressType;\n        /**\n         * Hotspot capability\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        capabilities: string;\n        /**\n         * Security type: reference definition of WifiSecurityType\n         * @type { WifiSecurityType }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * Security type: reference definition of WifiSecurityType\n         * @type { WifiSecurityType }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        securityType: WifiSecurityType;\n        /**\n         * Received signal strength indicator (RSSI)\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * Received signal strength indicator (RSSI)\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        rssi: number;\n        /**\n         * Frequency band, 1: 2.4G, 2: 5G\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        band: number;\n        /**\n         * Frequency\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * Frequency\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        frequency: number;\n        /**\n         * Channel width\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        channelWidth: number;\n        /**\n         * Center frequency 0.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        centerFrequency0: number;\n        /**\n         * Center frequency 1.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        centerFrequency1: number;\n        /**\n         * Information elements.\n         * @type { Array<WifiInfoElem> }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        infoElems: Array<WifiInfoElem>;\n        /**\n         * Time stamp\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        timestamp: number;\n        /**\n         * Supported wifi category\n         * @type { WifiCategory }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        supportedWifiCategory: WifiCategory;\n        /**\n         * Whether the Wi-Fi hotspot is HiLink network.\n         * @type { boolean }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        isHiLinkNetwork: boolean;\n    }\n    /**\n     * Describes the wifi security type.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.Core\n     * @since 9\n     */\n    /**\n     * Describes the wifi security type.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum WifiSecurityType {\n        /**\n         * Invalid security type\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 9\n         */\n        WIFI_SEC_TYPE_INVALID = 0,\n        /**\n         * Open\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 9\n         */\n        /**\n         * Open\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @atomicservice\n         * @since 12\n         */\n        WIFI_SEC_TYPE_OPEN = 1,\n        /**\n         * Wired Equivalent Privacy (WEP)\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 9\n         */\n        WIFI_SEC_TYPE_WEP = 2,\n        /**\n         * Pre-shared key (PSK)\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 9\n         */\n        WIFI_SEC_TYPE_PSK = 3,\n        /**\n         * Simultaneous Authentication of Equals (SAE)\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 9\n         */\n        WIFI_SEC_TYPE_SAE = 4,\n        /**\n         * EAP authentication.\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 9\n         */\n        WIFI_SEC_TYPE_EAP = 5,\n        /**\n         * SUITE_B_192 192 bit level.\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 9\n         */\n        WIFI_SEC_TYPE_EAP_SUITE_B = 6,\n        /**\n         * Opportunistic Wireless Encryption.\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 9\n         */\n        WIFI_SEC_TYPE_OWE = 7,\n        /**\n         * WAPI certificate to be specified.\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 9\n         */\n        WIFI_SEC_TYPE_WAPI_CERT = 8,\n        /**\n         * WAPI pre-shared key to be specified.\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 9\n         */\n        WIFI_SEC_TYPE_WAPI_PSK = 9\n    }\n    /**\n     * Describes the WAPI pre-shared key Type.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.Core\n     * @since 12\n     */\n    enum WapiPskType {\n        /**\n         * ASCII character type of WAPI pre-shared key.\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 12\n         */\n        WAPI_PSK_ASCII = 0,\n        /**\n         * HEX character type of WAPI pre-shared key.\n         *\n         * @syscap SystemCapability.Communication.WiFi.Core\n         * @since 12\n         */\n        WAPI_PSK_HEX = 1\n    }\n    /**\n     * Wi-Fi band type.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 10\n     */\n    enum WifiBandType {\n        /**\n         * Default.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_BAND_NONE,\n        /**\n         * Band 2.4G.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_BAND_2G,\n        /**\n         * Band 5G.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_BAND_5G,\n        /**\n         * Band 6G.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_BAND_6G,\n        /**\n         * Band 60G.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_BAND_60G\n    }\n    /**\n     * Wi-Fi standard.\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 10\n     */\n    enum WifiStandard {\n        /**\n         * Undefined\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_STANDARD_UNDEFINED,\n        /**\n         * Wifi 802.11a\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_STANDARD_11A,\n        /**\n         * Wifi 802.11b\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_STANDARD_11B,\n        /**\n         * Wifi 802.11g\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_STANDARD_11G,\n        /**\n         * Wifi 802.11n\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_STANDARD_11N,\n        /**\n         * Wifi 802.11ac\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_STANDARD_11AC,\n        /**\n         * Wifi 802.11ax\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_STANDARD_11AX,\n        /**\n         * Wifi 802.11ad\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        WIFI_STANDARD_11AD\n    }\n    /**\n     * Wi-Fi connection information.\n     * @typedef WifiLinkedInfo\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    /**\n     * Wi-Fi connection information.\n     * @typedef WifiLinkedInfo\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @atomicservice\n     * @since 12\n     */\n    interface WifiLinkedInfo {\n        /**\n         * The SSID of the Wi-Fi hotspot\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * The SSID of the Wi-Fi hotspot\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        ssid: string;\n        /**\n         * The BSSID of the Wi-Fi hotspot\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * The BSSID of the Wi-Fi hotspot\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        bssid: string;\n        /**\n         * The RSSI(dBm) of a Wi-Fi access point.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * The RSSI(dBm) of a Wi-Fi access point.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        rssi: number;\n        /**\n         * The frequency band of a Wi-Fi access point.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        band: number;\n        /**\n         * The speed of a Wi-Fi access point.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        linkSpeed: number;\n        /**\n         * The rx speed of a Wi-Fi access point.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        rxLinkSpeed: number;\n        /**\n         * Max tx speed of a Wi-Fi access point.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        maxSupportedTxLinkSpeed: number;\n        /**\n         * Max rx speed of a Wi-Fi access point.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        maxSupportedRxLinkSpeed: number;\n        /**\n         * The frequency of a Wi-Fi access point.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        /**\n         * The frequency of a Wi-Fi access point.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @atomicservice\n         * @since 12\n         */\n        frequency: number;\n        /**\n         * Whether the SSID of the access point (AP) of this Wi-Fi connection is hidden.\n         * @type { boolean }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        isHidden: boolean;\n        /**\n         * Whether this Wi-Fi connection restricts the data volume.\n         * @type { boolean }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        isRestricted: boolean;\n        /**\n         * Type of macAddress: 0 - real mac, 1 - random mac.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        macType: number;\n        /**\n         * The Wi-Fi MAC address of a device.\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        macAddress: string;\n        /**\n         * The IP address of this Wi-Fi connection.\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        ipAddress: number;\n        /**\n         * The state of this Wi-Fi connection.\n         * @type { ConnState }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        connState: ConnState;\n        /**\n         * Channel width of the connected hotspot.\n         * @type { WifiChannelWidth }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        channelWidth: WifiChannelWidth;\n        /**\n         * Wifi standard of current connection.\n         * @type { WifiStandard }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        wifiStandard: WifiStandard;\n        /**\n         * Supported wifi category\n         * @type { WifiCategory }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        supportedWifiCategory: WifiCategory;\n        /**\n         * Whether the Wi-Fi hotspot is HiLink network.\n         * @type { boolean }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        isHiLinkNetwork: boolean;\n        /**\n         * Wi-Fi link type\n         * @type { ?WifiLinkType }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 18\n         */\n        wifiLinkType?: WifiLinkType;\n    }\n    /**\n     * Wi-Fi IP information.\n     * @typedef IpInfo\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    interface IpInfo {\n        /**\n         * The IP address of the Wi-Fi connection\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        ipAddress: number;\n        /**\n         * The gateway of the Wi-Fi connection\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        gateway: number;\n        /**\n         * The network mask of the Wi-Fi connection\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        netmask: number;\n        /**\n         * The primary DNS server IP address of the Wi-Fi connection\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        primaryDns: number;\n        /**\n         * The secondary DNS server IP address of the Wi-Fi connection\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        secondDns: number;\n        /**\n         * The DHCP server IP address of the Wi-Fi connection\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        serverIp: number;\n        /**\n         * The IP address lease duration of the Wi-Fi connection\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        leaseDuration: number;\n    }\n    /**\n     * Wi-Fi IPv6 information.\n     * @typedef Ipv6Info\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 10\n     */\n    interface Ipv6Info {\n        /**\n         * The link IPv6 address of the Wi-Fi connection\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        linkIpv6Address: string;\n        /**\n         * The global IPv6 address of the Wi-Fi connection\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        globalIpv6Address: string;\n        /**\n         * The rand Global IPv6 address of the Wi-Fi connection\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        randomGlobalIpv6Address: string;\n        /**\n         * The unique IPv6 address of the Wi-Fi connection\n         * @type { ?string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        uniqueIpv6Address?: string;\n        /**\n         * The rand unique IPv6 address of the Wi-Fi connection\n         * @type { ?string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 12\n         */\n        randomUniqueIpv6Address?: string;\n        /**\n         * The gateway of the Wi-Fi connection\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        gateway: string;\n        /**\n         * The network mask of the Wi-Fi connection\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        netmask: string;\n        /**\n         * The primary DNS server IPV6 address of the Wi-Fi connection\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        primaryDNS: string;\n        /**\n         * The secondary DNS server IPV6 address of the Wi-Fi connection\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 10\n         */\n        secondDNS: string;\n    }\n    /**\n     * The state of Wi-Fi connection enumeration.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.STA\n     * @since 9\n     */\n    export enum ConnState {\n        /**\n         * The device is searching for an available AP.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        SCANNING,\n        /**\n         * The Wi-Fi connection is being set up.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        CONNECTING,\n        /**\n         * The Wi-Fi connection is being authenticated.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        AUTHENTICATING,\n        /**\n         * The IP address of the Wi-Fi connection is being obtained.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        OBTAINING_IPADDR,\n        /**\n         * The Wi-Fi connection has been set up.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        CONNECTED,\n        /**\n         * The Wi-Fi connection is being torn down.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        DISCONNECTING,\n        /**\n         * The Wi-Fi connection has been torn down.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        DISCONNECTED,\n        /**\n         * Failed to set up the Wi-Fi connection.\n         *\n         * @syscap SystemCapability.Communication.WiFi.STA\n         * @since 9\n         */\n        UNKNOWN\n    }\n    /**\n     * P2P device information.\n     *\n     * @typedef WifiP2pDevice\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    interface WifiP2pDevice {\n        /**\n         * Device name\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        deviceName: string;\n        /**\n         * Device mac address\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        deviceAddress: string;\n        /**\n         * Device mac address type\n         * @type { ?DeviceAddressType }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 10\n         */\n        deviceAddressType?: DeviceAddressType;\n        /**\n         * Primary device type\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        primaryDeviceType: string;\n        /**\n         * Device status\n         * @type { P2pDeviceStatus }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        deviceStatus: P2pDeviceStatus;\n        /**\n         * Device group capabilities\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        groupCapabilities: number;\n    }\n    /**\n     * P2P config.\n     *\n     * @typedef WifiP2PConfig\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    interface WifiP2PConfig {\n        /**\n         * Device mac address\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        deviceAddress: string;\n        /**\n         * Device mac address type\n         * @type { ?DeviceAddressType }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 10\n         */\n        deviceAddressType?: DeviceAddressType;\n        /**\n         * Group network ID. When creating a group, -1 indicates creates a temporary group,\n         * -2: indicates creates a persistent group\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        netId: number;\n        /**\n         * The passphrase of this {@code WifiP2pConfig} instance\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        passphrase: string;\n        /**\n         * Group name\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        groupName: string;\n        /**\n         * Group owner band\n         * @type { GroupOwnerBand }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        goBand: GroupOwnerBand;\n    }\n    /**\n     * P2P group information.\n     *\n     * @typedef WifiP2pGroupInfo\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    interface WifiP2pGroupInfo {\n        /**\n         * Indicates whether it is group owner\n         * @type { boolean }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        isP2pGo: boolean;\n        /**\n         * Group owner information\n         * @type { WifiP2pDevice }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        ownerInfo: WifiP2pDevice;\n        /**\n         * The group passphrase\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        passphrase: string;\n        /**\n         * Interface name\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        interface: string;\n        /**\n         * Group name\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        groupName: string;\n        /**\n         * Network ID\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        networkId: number;\n        /**\n         * Frequency\n         * @type { number }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        frequency: number;\n        /**\n         * Client list\n         * @type { WifiP2pDevice[] }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        clientDevices: WifiP2pDevice[];\n        /**\n         * Group owner IP address\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        goIpAddress: string;\n    }\n    /**\n     * P2P connection status.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    enum P2pConnectState {\n        /**\n         * p2p is disconnected\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        DISCONNECTED = 0,\n        /**\n         * p2p is connected\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        CONNECTED = 1\n    }\n    /**\n     * P2P linked information.\n     *\n     * @typedef WifiP2pLinkedInfo\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    interface WifiP2pLinkedInfo {\n        /**\n         * Connection status\n         * @type { P2pConnectState }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        connectState: P2pConnectState;\n        /**\n         * Indicates whether it is group owner\n         * @type { boolean }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        isGroupOwner: boolean;\n        /**\n         * Group owner address\n         * @type { string }\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        groupOwnerAddr: string;\n    }\n    /**\n     * P2P device status.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    enum P2pDeviceStatus {\n        /**\n         * Indicate p2p device is connected.\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        CONNECTED = 0,\n        /**\n         * Indicate p2p device is invited.\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        INVITED = 1,\n        /**\n         * Indicate p2p device is failed.\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        FAILED = 2,\n        /**\n         * Indicate p2p device is available.\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        AVAILABLE = 3,\n        /**\n         * Indicate p2p device is unavailable.\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        UNAVAILABLE = 4\n    }\n    /**\n     * P2P group owner band.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Communication.WiFi.P2P\n     * @since 9\n     */\n    enum GroupOwnerBand {\n        /**\n         * default band.\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        GO_BAND_AUTO = 0,\n        /**\n         * 2.4G band.\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        GO_BAND_2GHZ = 1,\n        /**\n         * 5G band.\n         * @syscap SystemCapability.Communication.WiFi.P2P\n         * @since 9\n         */\n        GO_BAND_5GHZ = 2\n    }\n}\nexport default wifiManager;\n",
}
export default FILE;